import React, { Component } from 'react';
import {
	StyleSheet,
	View,
	Image,
	TouchableOpacity,
} from 'react-native';
import InteractionManager from 'InteractionManager';
// import codePush from 'react-native-code-push';
import DCAction from '../actions/DCAction';
// let codePushOptions = { checkFrequency: codePush.CheckFrequency.MANUAL };

export default class RootView extends Component {

	componentDidMount(){

		// ALT.actions.DCAction.showLoading
  //      codePush.sync({deploymentKey:'RcxiRWOz85PHOBSc6_awpvZgaAhC4yXJyJyYl', installMode: codePush.InstallMode.IMMEDIATE},(status) => {
  //       switch (status) {
  //         case codePush.SyncStatus.UP_TO_DATE:
  //         {
  //           nav.replace({title:'Root'})
  //         }
  //         break;
  //         case codePush.SyncStatus.UNKNOWN_ERROR:
  //         {
  //           nav.replace({title:'Root'})
  //         }
  //         break;
  //       }
  //     },(progress) => {

  //       }
  //       );
       
		 
  nav.replace({title:'Root'})
	}
	render(){
		return(
			<View style = {{backgroundColor: 'white'}}>	
				<Image 
					style = {{width:Common.size.width,height:Common.size.height,backgroundColor: 'white',}}
					source={{uri: 'https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2342099566,2302602301&fm=116&gp=0.jpg'}} />
			</View>
			
		)
	}
}